<template>
  <div v-if="$route.meta.useFrame !=undefined && $route.meta.useFrame == false">
    <RouterView></RouterView> 
  </div>
  <div v-if="$route.meta.useFrame == undefined || $route.meta.useFrame == true">
  <el-container>
    <el-header>
      <el-row class="row-bg" justify="space-between">
        <el-col :span="6" class="logo">
          <img src="./assets/logo.jpg" alt="" width="200px" height="49px">
        </el-col>
        <el-col :span="6">
          <p style="color: black; font-weight: 700;">移动多端服务平台</p>
        </el-col>
        <el-col :span="6">
          <el-dropdown>
            <span class="el-dropdown-link">
              唐昊<el-icon class="el-icon--right"><arrow-down /></el-icon>
            </span>
            <template #dropdown>
              <el-dropdown-menu>
                <el-dropdown-item :icon="Connection">账户与安全</el-dropdown-item>
                <el-dropdown-item :icon="CirclePlusFilled">
                  个人中心
                </el-dropdown-item>
                <el-dropdown-item :icon="CirclePlus">常见问题</el-dropdown-item>
                <el-dropdown-item :icon="Check">关于我们</el-dropdown-item>
                <el-dropdown-item :icon="CircleCheck">登出</el-dropdown-item>
              </el-dropdown-menu>
            </template>
          </el-dropdown>
        </el-col>
      </el-row>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <Menu></Menu>
      </el-aside>
      <el-main>
        <RouterView></RouterView>
      </el-main>
    </el-container>
  </el-container>
 </div>
  <!-- <router-view></router-view> -->
</template>

<script setup lang="ts">
import Menu from './components/Menu.vue';
import {
  ArrowDown,
  Check,
  CircleCheck,
  CirclePlus,
  CirclePlusFilled,
  Connection,
} from '@element-plus/icons-vue'


</script>


<style scoped>
* {
  margin: 0px;
  padding: 0px;
}

.el-header {
  width: 100%;
  height: 50px;
  background-color: #c6e2ff;
}
.el-dropdown{
  padding-top: 15px;
  float: right;
  color: black;
}
.logo{
  margin-left: -18px;
  padding-left: 0px;
}
</style>
